<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/validate.jsp"%>
<%@ include file="/common/operatehistory.jsp"%>
<%
	OperateHistory oh = OperateHistory.fromMap(parameters, OperateHistory.class);
	Integer flag = oh.getOperate();
	if (!SEE.equals(flag)) { 
		msg = Token.validateToken(input);  
		errcode = msg.getErrcode();
		if (0 != errcode) {
			Tools.encryptPrint(out, msg);
			return;
		}
		Token token = (Token)msg.get("token");
		msg = new Message();
		oh.setUid(token.getUid() + "");
	}
	Tools.encryptPrint(out, operate(oh, true));
%>